<form method=POST>
  <table align=center class='settable' cellpadding=1 width=100%>
  <tr>
  <td class='foot' align=center colspan=2>&nbsp;</td>
  <tr>
  <td>*Имя</td><td><input type=text name='name' size=70 value='<?=$result['name'];?>'></td>
  <?if (!empty($_GLOBALS['cnf']['addfild'])){?>
  <?foreach($_GLOBALS['cnf']['addfild'] as $key=>$val) {?>
       <tr>
       <td><?if(in_array($val,$_GLOBALS['cnf']['noempty'])){print"*";}?><?=$key;?></td><td><input type=text size=70 name='<?=$val;?>' value='<?=$result['addfilds'][$val];?>'></td>
  <?}?>
  <?}?>
  <tr>
  <td>*Текст</td><td><?=$bbcode;?><textarea rows=8 cols=53 name='text' id='text' wrap="off"><?=$result['text'];?></textarea></td>
  <tr>
  <td class='foot' align=center colspan=2><input type=submit value='Сохранить'></td>
</table>
</form>
